package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author laozhang
 * @date 2021/9/25 11:27
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_menu")
public class TMenu  implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     *父级id
     */
    @TableField(value = "pid")
    private Integer pid;
    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    private String menuName;
    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;
    /**
     * 菜单链接
     */
    @TableField(value = "menu_url")
    private String menuUrl;
    /**
     *菜单状态 1启用  2禁用
     */
    @TableField(value = "menu_status")
    private Integer menuStatus;
    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;
    /**
     * 增加人
     */
    @TableField(value = "add_by")
    private String addBy;
    /**
     * 时间
     */
    @TableField(value = "add_time")
    private Date addTime;
    @TableField(exist = false)
    private List<TMenu> childMenu =new ArrayList<>();

    @TableField(exist = false)
    private String  parentName;


}
